package com.wwz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wwz.pojo.Rent;
import com.wwz.pojo.query.RentQuery;

import javax.servlet.http.HttpServletResponse;

/**
 * 租赁接口
 * @date 2022/03/26 12:04:59
 */
public interface IRentService extends IService<Rent> {

    /**
     * 分页查询
     * @param query
     * @return
     */
    IPage<Rent> toPage(RentQuery query);

    /**
     * 修改租赁信息
     * @param rent
     */
    void addOrUpdate(Rent rent);

    /**
     * 导出word
     * @param id
     */
    void export(HttpServletResponse response,String id);
}
